import 'package:aweb5/bean/aplus/tuijianren_entity.dart';

tuijianrenEntityFromJson(TuijianrenEntity data, Map<String, dynamic> json) {
	if (json['msg'] != null) {
		data.msg = json['msg']?.toString();
	}
	if (json['data'] != null) {
		data.data = new TuijianrenData().fromJson(json['data']);
	}
	if (json['code'] != null) {
		data.code = json['code']?.toInt();
	}
	return data;
}

Map<String, dynamic> tuijianrenEntityToJson(TuijianrenEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['msg'] = entity.msg;
	if (entity.data != null) {
		data['data'] = entity.data.toJson();
	}
	data['code'] = entity.code;
	return data;
}

tuijianrenDataFromJson(TuijianrenData data, Map<String, dynamic> json) {
	if (json['nickname'] != null) {
		data.nickname = json['nickname']?.toString();
	}
	if (json['headimgurl'] != null) {
		data.headimgurl = json['headimgurl']?.toString();
	}
	if (json['id'] != null) {
		data.id = json['id']?.toInt();
	}
	if (json['mobile'] != null) {
		data.mobile = json['mobile']?.toString();
	}
	return data;
}

Map<String, dynamic> tuijianrenDataToJson(TuijianrenData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['nickname'] = entity.nickname;
	data['headimgurl'] = entity.headimgurl;
	data['id'] = entity.id;
	data['mobile'] = entity.mobile;
	return data;
}